package java8.stringJoiner;

import org.eclipse.core.internal.utils.StringPoolJob;

import java.util.StringJoiner;

/**
 * @author vivi20
 * @ClassName Test
 * @description: TODO
 * @Date 2020/4/1 17:46
 * @Vertion 1.0
 */
public class Test {
    public static void main(String[] args) {
        StringJoiner sj = new StringJoiner(",","(",")");
        sj.add("java");
        sj.add("php");
        sj.add("python");
        System.out.println(sj.toString());

        StringJoiner sj1 = new StringJoiner("php");
        sj1.add("java");
        sj1.add("c#");
        System.out.println(sj1.toString());

    }
}
